#Random Generator

from tkinter import *
from random import randint

def rand():
	tx['text'] = randint(int(m1.get()), int(m2.get()))


root = Tk()
root.title('Random Generator')
root.geometry('500x300')
root.resizable(False, False)

m1 = StringVar()
m2 = StringVar()

d1 = Entry(root, font = '15', textvariable = m1)
d2 = Entry(root, font = '15', textvariable = m2)
button = Button(root, font = '15', text = 'Получить случайное число', command = rand)
tx = Label(root, font = '20', text = '')

d1.pack()
d2.pack()
button.pack()
tx.pack()

root.mainloop()